package com.own.component.common.util.encrypt.model;

import lombok.Builder;
import lombok.Getter;

import java.io.Serializable;
import java.security.PrivateKey;

/**
 * CustomEncryptKey
 *
 * @author chenxueli
 * @date 2020/7/1 14:56
 */
@Builder
@Getter
public class CustomEncryptKey implements Serializable {

    /**
     * 公钥
     */
    private final String publicKey;

    /**
     * 私钥
     */
    private final String privateKey;

    /**
     * 私钥
     */
    private final PrivateKey pk;

    /**
     * 秘钥
     */
    private final String secret;

    /**
     * 是否加密内容
     */
    @Builder.Default
    private final boolean isContent = false;

    /**
     * iv算法参数值
     */
    private final String iv;

}
